package com.example.springboot.service;

import com.example.springboot.Mapper.RenoteMapper;
import com.example.springboot.pojo.renote;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class RenoteService implements RenoteMapper {
    @Autowired
    RenoteMapper renoteMapper;

    @Override
    public List<renote> getRenote() {
        return renoteMapper.getRenote();
    }

    @Override
    public int addRenote(renote r) {
        return renoteMapper.addRenote(r);
    }

    @Override
    public int sumRenote() {
        return renoteMapper.sumRenote();
    }
}
